package com.hc.action;

import com.hc.domain.Order;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

public interface OrderAction {

    @TwoPhaseBusinessAction(name = "tcc-order")
    public void tryOrder(BusinessActionContext context, @BusinessActionContextParameter("order") Order order);

    public void commit(BusinessActionContext context);

    public void rollback(BusinessActionContext context);
}
